function [CNC_state,ask_list,CNC_swork]=asklist(CNC_state,ask_list,CNC_swork)
CNC_work=560;
ask_list=[];
    for i=1:8
       if CNC_swork(i)
           if (CNC_state(i)-CNC_work)>= 0 
              ask_list=[ask_list,i];
              
           end
       else
           CNC_state(i)=0;
           ask_list=[ask_list,i];
       end
    end
end